package cn.javass.dp.command.example6;

public class Client {
    public static void main(String[] args) {
     //先启动后台，厨师待命
        CookManager.runCookManager();

        for (int i = 1; i < 5; i++) {
            Waiter waiter = new Waiter();
            Command cmd1 = new ChopCommand(i);
            Command cmd2 = new DuckCommand(i);

            waiter.orderDish(cmd1);
            waiter.orderDish(cmd2);
            waiter.orderOver();
        }

    }
}
